package com.demo.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("cloudalibaba-config-service")
public interface StockFeignClient {
//    @GetMapping("/stock")
//     String test(@RequestParam("info") String info);


    @RequestMapping(path = "/stock/deduct")
    Boolean deduct(@RequestParam("commodityCode")String commodityCode, @RequestParam("count") Integer count);

}
